<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
<title>焦点学苑</title>
<link rel="stylesheet" href="/css/base.css">
<link rel="stylesheet" href="/css/style.css">
</head>

<body>
<div class="head-box">
    <div class="head wrap">
          <div class="logo fl"><a href=""><img src="/images/logo.png"></a></div>
          <div class="head-right fr">
              <div th:if="${session.user==null}">
                  <div class="head-a fr">
                      <div class="head-a1 fl"><a href=""><img src="/images/tb-a.png"></a></div>
                      <div class="head-a1 fl"><a href=""><img src="/images/tb-b.png"></a></div>
                      <div class="head-a3 login-click fl">登录</div>
                      <div class="head-a4 reg-click fl">注册</div>

                  </div>
              </div>
              <div th:if="${session.user!=null}">
                  <div class="head-a fr">
                      <div class="hgt fl"><img src="/images/hgt.png">
                          <div class="hgt-top">
                              <input type="text" class="hgt-text">
                          </div>
                      </div>
                      <div class="tbt fl"><img th:src="@{'/upload/'+${session.user.getHeadimg()}}" style="width: 30px;height: 30px;border-radius: 500rem;">
                          <div class="hgt-btm">
                              <a th:href="@{/article/personalMessage}">我的主页</a>
                              <a href="/userData/statistics">文章数据统计</a>
                              <a href="/userData/statistics2">收益统计</a>
                              <a href="/user/focus">我的关注</a>
                              <a href="/account.html">帐号设置</a>
                              <a th:href="@{/user/loginOut}">退出</a>
                          </div>
                      </div>

                  </div>
              </div>
              <div class="clearfix"></div>
              <div class="nav fr">
                  <ul>
                       <li><a href="/blog/getIndex">首页</a></li>
                      <li><a href="/blog/getArticleList?counts=0">文章</a>
                           <div class="sub-nav">
                                <div class="bich-top"></div>
                                 <div class="bich">
                                     <a href="">服饰</a>
                                     <a href="">美食</a>
                                     <a href="">出行</a>
                                     <a href="">约会</a>
                                 </div>
                           
                           </div>
                       </li>
                      <li><a href="/tool/community">社区</a></li>
                      <li><a href="/blog/getCourseInfoList?sorts=1">课程</a></li>
                      <li><a href="/tool/active">活动</a></li>
                      <li><a href="/tool/contact">联系我们</a></li>
                  
                  </ul>
              </div>
              <div class="clearfix"></div>
          </div>
    </div>
</div>

<div class="content">
    <div class="wrap">
          <div class="art-height"></div>
          <div class="art-box">
                <div class="art-b">
                    <a href=""><div class="art-b1 mr-30 fl"><img src="/upload/art-b1.jpg">
                                     <div class="art-inside">今日焦点：文章名称例学霸情侣养成记</div>
                               </div></a>
                     <a href=""><div class="art-b1 fl"><img src="/upload/art-b2.jpg">
                                     <div class="art-inside">初次见面怎么牵手约会</div>
                               </div></a>
                </div>
                <div class="art-c">
                        <div class="art-fl fl">
                               <div class="ru-title art-title">
                                       <div class="cou-b1"><img src="/images/cou-b1.jpg">焦点文章</div>
                                       <div class="ru-a1">
                                             <div class="sort">排序</div>
                                       </div>
                                       <div class="ru-a2">
                                             <div class="dropdown">
                                                    <span>全部</span>
                                                    <span th:each="contentType:${contentTypeList}" th:value="${contentType.typeid}" th:text="${contentType.typename}"></span>
                                             </div>
                                       </div>
                               </div>
                               <div class="tjk">
                                    <ul class="art-ul" th:each="article:${articleList}">
                                         <a th:href="@{/blog/getArticle(aid=${article.aid})}"><li><div class="art-list">
                                                          <div class="art-d fl"><img th:src="@{'/upload/'+${article.artimg}}"></div>
                                                          <div class="art-e fl">
                                                                <div class="col-b1" th:text="${article.title}"></div>
                                                                <div class="col-b2">焦点学苑<span th:text="${article.createtime}"></span></div>
                                                                <div class="col-b3" th:text="${article.content}"></div>
                                                          </div>
                                                          <div class="art-f">
                                                                <span><img src="/images/col-c1.jpg">[(${article.commentnum})]</span>
                                                                <span><img src="/images/col-c2.jpg">[(${article.collnum})]</span>
                                                                <em><img src="/images/col-c3.jpg"></em>
                                                                <em><img src="/images/col-c4.jpg"></em>
                                                                <em><img src="/images/col-c5.jpg"></em>
                                                          </div>
                                                 </div>
                                                 <div class="art-g"></div>
                                          </li></a>
                                    </ul>
                               </div>
                               <div class="more"><a th:href="@{/blog/getArticleList(counts=${count})}">查看更多>></a></div>
                        
                        </div>
                        <div class="art-fr fr">
                               <div class="post-y art-gg">
                                     <div class="post-y1"><img src="/images/cou-b1.jpg">最新文章</div>
                                     <ul th:each="hotestArticle:${hotestArticle}">
                                      <a href=""><li>
                                           <div class="post-y2"><img th:src="@{'/upload/'+${hotestArticle.artimg}}"></div>
                                           <div class="post-y3" th:text="${hotestArticle.title}"></div>
                                      </li></a>
                                 </ul>
                               </div>
                               <div class="fish"><a href=""><img src="/upload/ru-c1.png"></a></div>
                        </div>
                </div><!--art-c-->
          
          </div>
    </div>      
</div>

<div class="footer">
   <div class="wrap">
      <div class="foot">
            <div class="foot-left fl">
                 <a href="">关于我们</a>
                 <a href="">加入我们</a>
                 <a href="/contact.html">联系我们</a>
                 <a href="">媒体采访</a>
            </div>
            <div class="foot-c fl"><a href=""><img src="/images/foot-logo.jpg"></a></div>
            <div class="foot-right fr">
                 <a href="">同城活动</a>
                 <a href="">课程资讯</a>
                 <a href="">最新发布</a>
                 <a href="">热门文章</a>
            </div>
       </div> 
       <div class="foot-btm">网页制作by云邦</div>    
   </div>
</div>


<!--登录注册弹窗-->
<div class="mask"></div>
<div class="login">
    <div class="login-title">
        <div class="login-a">登录</div>
        <div class="login-b"></div>
        <div class="login-c close">x</div>
    </div>
    <div class="login-btm">
        <form action="/user/userLogin" method="post">
            <div class="login-d"><input type="text" name="uphone" class="login-text" placeholder="手机号"></div>
            <div class="login-d"><input type="password" name="upass" class="login-pas" placeholder="密码"></div>
            <div class="login-d"><input type="submit" class="login-btn" value="登录" placeholder="登录"></div>
        </form>
        <div class="login-f">
            <a href="">忘记密码</a>
            <span>还没有焦点账号?><a href="javascript:;" class="reg-href">点击注册</a></span>
        </div>
    </div>
</div>

<div class="reg">
    <div class="login-title">
        <div class="login-a">注册</div>
        <div class="login-b"></div>
        <div class="login-c close">x</div>
    </div>
    <div class="login-btm">
        <form action="/user/userRegister" method="post" enctype="multipart/form-data">
            <div class="login-d"><input type="text" name="uphone" class="login-text" placeholder="手机号"></div>
            <div class="login-d"><input type="text" name="uemail" class="login-text" placeholder="邮箱"></div>
            <div class="login-d"><input type="text" name="uname" class="login-pas" placeholder="用户名"></div>
            <div class="login-d"><input type="file" name="file"></div>
            <div class="login-d"><input type="date" name="ubirthday" class="login-pas" placeholder="出生日期"></div>
            <div class="login-d">
                <select name="usex">
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
            <div class="login-d"><input type="text" name="ucity" class="login-pas" placeholder="地址"></div>
            <div class="login-d"><input type="password" name="upass" class="login-pas" placeholder="密码"></div>
            <div class="login-d"><input type="submit" class="login-btn" value="注册" placeholder="注册"></div>
        </form>
        <div class="login-f">
            <a href="">忘记密码</a>
        </div>
    </div>
</div>



<script src="/js/jquery-1.11.1.min.js"></script>
<script src="/js/Action.js"></script>
<script>
   $(".sort").click(function(){
	   $(this).toggleClass("sort-cut")  
	})
</script>
<script>
   $(".dropdown").bind({
	    click: function () {
	        $(this).find(".droplist").stop().slideDown();
	    },
	    mouseleave: function () {
	        $(this).find(".droplist").hide();
	    }
	});
	$(".dropdown .droplist li").click(function () {
	    $(this).parents(".dropdown").children("span").text($(this).text());
	    $(this).parents(".droplist").hide().attr("data-value", $(this).attr("data-id"));
	});
</script>

</body>
</html>

